package Lexical;

import java.util.HashSet;
import java.util.Set;

public class MultiTransform {
    private String current_status;
    private String input;
    private Set<String> target_status = new HashSet<String>();/*忘记 没有初始化set，导致没有set对象，所以无法使用set的方法
                                                                 一直报 NullPointerExceptio*/
    public String getCurrent_status() {
        return current_status;
    }

    public String getInput() {
        return input;
    }

    public Set<String> getTarget_status() {
        return target_status;
    }

    public void setCurrent_status(String current_status) {
        this.current_status = current_status;
    }

    public void setInput(String input) {
        this.input = input;
    }

    public boolean addTargetStatus( String targetStatus )
    {
        return this.target_status.add(targetStatus);
    }


    public boolean isEqual(String current_status, String input )
    {
        if( this.current_status.equals(current_status) && this.input.equals(input) )
            return  true;
        else
            return  false;
    }
    public boolean isEq2CurStat(String current_status)
    {
        if(this.current_status.equals(current_status))
            return true;
        else
            return false;
    }

}
